<script src="/javascripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script src="/javascripts/mce_editor.js" type="text/javascript"></script>

<div class='form'>
  <% form_for @category do |f| %>
    <%= f.error_messages %>
    <p>
      <label for="category_parent_id">父类</label>
      <%=  f.select(:parent_id,categories_options) %>
    </p>

    <p>
      <label for="category_title">名称</label>
      <%= f.text_field :title %>
    </p>

    <p>
      <label for="category_description">描述</label>
      <%= f.text_area :description,:class =>"mce-editor" %>
    </p>

    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>

  <% end %>
</div>